package com.spring.security;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @ClassName MainStartApplication
 * @Description MainStartApplication
 * @Author 朱秒
 * @Date 2020/2/19 12:34
 * @Version 1.0
 */
@SpringBootApplication
@RestController
@EnableSwagger2
@EnableAutoConfiguration(exclude = {SecurityAutoConfiguration.class})
public class MainStartApplication {
    /**
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(MainStartApplication.class, args);
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello spring security";
    }
}
